package com.tiankong.product.controller;


import com.tiankong.product.service.SkuInfoService;
import net.youdi.common.filter.PageFilter;
import net.youdi.common.model.Page;
import net.youdi.common.model.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * sku信息 前端控制器
 * </p>
 *
 * @author scl
 * @since 2021-03-22
 */
@RestController
@RequestMapping("/skuinfo")
public class SkuInfoController {
    @Autowired
    private SkuInfoService skuInfoService;
    /**
     * 列表
     */
    @RequestMapping("page/list")
    public Result list(PageFilter filter){
        Page page = skuInfoService.queryPage(filter);
        return Result.ok().setPage(page);
    }
}
